package org.xiao.web

import org.junit.Test

import java.util.Date

class JavaTest {

    @Test
    fun test() {
        val begin = Date().time
        val count = 10000 * 10000
        val sum = (1..count).sum()
        val end = Date().time
        println("Java time:" + (end - begin) + ",sum:" + sum)
        val p = (end - begin) * 1.00 / GroovyTest.performance2() * 1.00
        println(p)
    }
}
